package VN.EDU.IMIC.DEVELOPER.TRANTHITHANHNGA.OOP.dangnhaphethong;

public class Controller {
	private Userinfo user;
	private Models mUser;

	public Controller(Userinfo user) {
		this.user = user;
		mUser = new Models();
	}

	public boolean Checkuser() {
		if (mUser.checkUsername(user)) {
			if (mUser.checkPassword(user)) {
				if (mUser.checkUserinfo(user)) {
					return true;
				} else
					return false;
			} else
				return false;
		} else
			return false;
	}
}
